<#include "/layout/layout.ftl">
<#import "/layout/macro.ftl" as macro>
<#assign css>
<style>
</style>
</#assign>
<#assign js>
<script>
</script>
</#assign>
<@layout title="师傅余额列表" active="masteraccount">
<!-- Content Header (Page header) -->

<!-- Main content -->
<section class="content">
	<!-- Default box -->
	<div class="box box-primary">
		<div class="box-header">

			<form class="form-horizontal form-edit" method="post" action="/masteraccount/index" id="form">
				<div class="form-group" style="margin-top:10px;">
					<div class="col-sm-2">
						<input  placeholder="师傅姓名" id="masterName" name="masterName" class="form-control" type="text" value="${masterReq.masterName!}" >
					</div>
				</div>
				<div class="btn-group">
					<button type="submit" class="btn btn-primary" data-btn-type="search">查询</button>
					<button type="button" class="btn btn-default" data-btn-type="reset" onclick="javascript:$('#form')[0].reset();">重置</button>
				</div>
			</form>
<#--        <@shiro.hasPermission name="system:master:add">-->
<#--			<a class="btn btn-sm btn-success" href="/master/add">新增</a>-->
<#--        </@shiro.hasPermission>-->
		</div>
		<div class="box-body">
			<table class="table table-striped">
				<tr>
					<th></th>
					<th>师傅姓名</th>
					<th>账户余额</th>
					<th>操作</th>
				</tr>
                <#list pageInfo.list as item>
                <tr>
					<td >${item.userId!}</td>
					<td >${item.masterName!}</td>
					<td >${item.extraAmount!}</td>
					<td><@shiro.hasPermission name="system:master:detail">
							<a class="btn btn-sm btn-success" href="/masteraccount/detail/${item.userId}" data-btn-type="detail">余额明细</a>
						</@shiro.hasPermission></td>
				</tr>
                </#list>
			</table>
		</div>
		<!-- /.box-body -->
		<div class="box-footer clearfix">
            <@macro.page pageInfo=pageInfo url="/masteraccount/index?" />
		</div>
	</div>
	<!-- /.box -->

</section>
<!-- /.content -->
</@layout>
